package com.xxxx.service;

import com.xxxx.pojo.Book;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created By ShaoXikai on 2022/7/22
 */
@Transactional
public interface BookService {

    boolean save(Book book);

    boolean update(Book book);

    boolean delete(Integer id);

    Book getById(Integer id);

    List<Book> getAll();

    List<Book> getByName(String name);
}
